package com.ruoyi.manage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.manage.domain.OrderFileEntity;
import com.ruoyi.manage.entity.order.OrderFileVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface IOrderFileService extends IService<OrderFileEntity> {

    void uploadFile(MultipartFile file, String orderId, String fileType);

    List<OrderFileVo> findOrderFile(String orderId);

    /**
     * 文件下载
     * @param fileCode
     */
    void orderFileDown(HttpServletResponse response, String fileCode) throws IOException;
}
